function gotoDetails() {
    console.log(111);
}
$('.cont-name').on('click', gotoDetails);
$('.cont-title-p').on('click', gotoDetails);
$('.cont-con-p').on('click', gotoDetails);
$('.cont-data-b1').on('click', gotoDetails);

// 发送请求获取一言接口
var url = 'https://api.xsot.cn/sentence';
var method = 'GET';

sendAjaxRequest(url, method, null, function(response) {
    // console.log('请求成功：', response.data);
    if (response.data.sentence && response.data.sentence.trim() !== '') {
        $('.cbl-p').text(response.data.sentence);
    }
    if (response.data.from && response.data.from.trim() !== '') {
        $('.cbl-p2').text("—— " + response.data.from);
    }
}, function(errorStatus) {
    console.log('一言请求失败，错误状态码：', errorStatus);
});